package com.lanju.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lanju.dao.SeeAdviceDao;
import com.lanju.entity.Seekadvice;
import com.lanju.service.SeeAdviceService;
@Service
public class SeeAdviceServiceImpl implements SeeAdviceService {

	@Autowired
	SeeAdviceDao seeAdviceDao;
	
	@Override
    @Transactional(value="financialmarketingTM", rollbackFor = Exception.class)
	public Map<String, Object> addSeeAdvice(Seekadvice sa) {
		Map<String, Object> result=new HashMap<String, Object>();
		try {
			seeAdviceDao.addSeeAdvice(sa);
			result.put("success", true);
		} catch (Exception e) {
			result.put("success", false);
			e.printStackTrace();
		}
		return result;
	}

}
